package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.Users;
import com.ruoyi.system.domain.vo.UsersVo;
import com.ruoyi.system.mapper.UsersMapper;
import com.ruoyi.system.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author anan.
 * @version 1.0
 * @create 2021-06-16 15-37
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {

	@Autowired
	private UsersMapper usersMapper;

	@Override
	public List<UsersVo> selectPage(Map<String, Object> stringObjectMap) {
		return usersMapper.usersByMap(stringObjectMap);
	}

	@Override
	public List<UsersVo> getUserByDeptIds(String[] deptIds) {
		return usersMapper.getUserByDeptIds(deptIds);
	}
}
